//
//  DataOrganViewController.m
//  CategoryKit
//
//  Created by xinpenghui on 16/12/14.
//  Copyright © 2016年 xinpenghui. All rights reserved.
//

#import "DataOrganViewController.h"
#import "NSMutableArray+Sort.h"

@interface DataOrganViewController ()
@property (nonatomic, strong) NSMutableArray *mutArray;
@end

@implementation DataOrganViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"DataOrganization";
    self.view.backgroundColor = [UIColor whiteColor];
    [self setData];
    NSLog(@"self.mutArray = %@",self.mutArray);
    [self testCase];
    NSLog(@"self.mutArray change = %@",self.mutArray);

}

- (void)setData {
    self.mutArray = [[NSMutableArray alloc] initWithArray:@[@"1",@"2",@"3",@"4",@"5"]];
}

- (void)testCase {
    [self.mutArray moveObjectFromIndex:4 toIndex:0];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
